package com.yunxi.sto.service;

import com.github.pagehelper.PageInfo;
import com.yunxi.core.web.ApiResult;
import com.yunxi.sto.pojo.*;

import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;

public class StoManageDubboServiceMock implements StoManageDubboService {
    @Override
    public StoManageVO getById(String id) throws InvocationTargetException, IllegalAccessException {
        StoManageVO vo = new  StoManageVO();
        vo.setStorageName("暂无数据");
        return vo;
    }

    @Override
    public ApiResult saveOrUpdate(StoManageEditVO stoManageEditVO) throws Exception {
        return null;
    }

    @Override
    public void removeById(String id) {

    }

    @Override
    public void del(List<String> list, String userId) throws Exception {

    }

    @Override
    public void reset(List<String> list, String userId) {

    }

    @Override
    public void frozen(List<VehicleStockFrozenVO> list, String userId) throws Exception {

    }

    @Override
    public void frozenReset(List<VehicleStockFrozenVO> list, String userId) throws Exception {

    }

    @Override
    public PageInfo detail(String storageId, Integer pageNum, Integer pageSize) {
        PageInfo<StoManageVO> page =  new   PageInfo<StoManageVO>();
        List  list  =  new ArrayList();
        StoManageVO vo =  new StoManageVO();
        vo.setStorageName("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;

    }

    @Override
    public PageInfo<StoManageVO> findPageByVO(StoManageVO stoManageVO, Integer pageNum, Integer pageSize) {
        PageInfo<StoManageVO> page =  new   PageInfo<StoManageVO>();
        List  list  =  new ArrayList();
        StoManageVO vo =  new StoManageVO();
        vo.setStorageName("暂无数据");
        list.add(vo);
        page.setList(list);
        return page;
    }

    @Override
    public Object findTreeList() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException {
        StoManageVO vo = new  StoManageVO();
        vo.setStorageName("暂无数据");
        return vo;
    }

    @Override
    public String partnerStorage(StoManageAddVO stoManageAddVO) throws Exception {
        return "暂无数据";
    }

    @Override
    public List<StoManageAreaVO> areaList() {
        List  list  =  new ArrayList();
        StoManageAreaVO vo =  new StoManageAreaVO();
        vo.setAreaname("暂无数据");
        list.add(vo);
        return list;
    }

    @Override
    public List<VehicleStockFrozenListVO> exportFrozenHis() throws Exception {
        List  list  =  new ArrayList();
        StoManageVO vo =  new StoManageVO();
        vo.setStorageName("暂无数据");
        list.add(vo);
        return list;
    }
}
